<?php

namespace App\Http\Models\Business;

use App\Http\Models\BaseModel;
use App\Http\Models\CategoryContract;

class ExternalOrderDetails extends BaseModel
{
    protected $table = 'external_order_details';

    public function payer()
    {
        return $this->belongsTo(Payer::class, 'payer_code', 'code');
    }

    public function category_contract()
    {
        return $this->belongsTo(CategoryContract::class, 'category_contract_id', 'id');
    }
}
